<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={APP_CHARSET}">
<link media="all" type="text/css" href="css/admin/admincp.css" rel="stylesheet"/>
<script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
	function selectCell(obj) {
		var trid=obj.value;
		$("#"+trid+" input[name='regular_code[]']").each(function(){
		   this.checked = obj.checked;
		 }); 
	}
</script>
</head>

<body>

<div id="append">
</div>

<div class="container">
	<div class="hastabmenu" style="height:30px">
		<ul class="tabmenu">
			<li><a href="index.php?c=admin_usergroup&a=default">会员用户组</a> </li>
			<li><a  href="index.php?c=admin_usergroup&a=system">系统用户组</a></li>
			<li class="tabcurrent"><a  href="#">设置组权限</a></li>
		</ul>
	</div>


	<!--{if isset($message)}-->
		<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
		<div class="{$type}"><p>{$message}</p></div>
	<!--{/if}-->
	
	<div class="mainbox">
		<form action="index.php?c=admin_usergroup&a=regular&id=$group['id']" method="post">
		<input type="hidden" name="id" value="$group['id']">
			<table class="datalist fixwidth" cellspacing="1"><tbody>
			<tr id="regular_view">
			  <td class="first-cell" valign="top" width="18%">
			  	<input name="chkGroup" value="regular_view"  class="checkbox" type="checkbox" onclick="selectCell(this);">页面浏览（前台）
			  </td>
			  <td>
			  	<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="user/register"  {if false!==strpos($group['regulars'],'user/register')}checked{/if}  class="checkbox" type="checkbox">用户注册
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="index/default"  {if false!==strpos($group['regulars'],'index/default')}checked{/if}  class="checkbox" type="checkbox">首页浏览
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="event/view"  {if false!==strpos($group['regulars'],'event/view')}checked{/if}  class="checkbox" type="checkbox">浏览活动
			    </div>

			   </td>
		 	</tr>
			
		<!--{if 0!=$group['id']}-->

			<tr id="regular_user">
			  <td class="first-cell" valign="top" width="18%">
			  	<input name="chkGroup" value="regular_user"  class="checkbox" type="checkbox" onclick="selectCell(this);">用户相关（前台）
			  </td>
			  <td>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="user/default"  {if false!==strpos($group['regulars'],'user/default')}checked{/if}  class="checkbox" type="checkbox">基本资料
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="user/event"  {if false!==strpos($group['regulars'],'user/event')}checked{/if}  class="checkbox" type="checkbox">我的活动
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="user/profile"  {if false!==strpos($group['regulars'],'user/profile')}checked{/if}  class="checkbox" type="checkbox">资料设置
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="user/uppass"  {if false!==strpos($group['regulars'],'user/uppass')}checked{/if}  class="checkbox" type="checkbox">修改密码
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="user/supply"  {if false!==strpos($group['regulars'],'user/supply')}checked{/if}  class="checkbox" type="checkbox">活动报名
			    </div>
			    
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="event/list"  {if false!==strpos($group['regulars'],'event/list')}checked{/if}  class="checkbox" type="checkbox">活动管理
			    </div>
			   </td>
		 	</tr>

 
		 	
		 	<!--{if  $group['id'] >= 1}-->
			<tr id="regular_setting">
			  <td class="first-cell" valign="top" width="18%">
			  	<input name="chkGroup" value="regular_setting"  class="checkbox" type="checkbox" onclick="selectCell(this);">网站设置（后台）
			  </td>
			  <td>
			    <div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_main/default"  {if false!==strpos($group['regulars'],'admin_main/default')}checked{/if}  class="checkbox" type="checkbox">后台登录
			    </div>
			    <div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_setting/base,admin_setting/default"  {if false!==strpos($group['regulars'],'admin_setting/base,admin_setting/default')}checked{/if}  class="checkbox" type="checkbox">基本设置
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_setting/register"  {if false!==strpos($group['regulars'],'admin_setting/register')}checked{/if}  class="checkbox" type="checkbox">注册设置
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_setting/mail"  {if false!==strpos($group['regulars'],'admin_setting/mail')}checked{/if}  class="checkbox" type="checkbox">邮件设置
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_setting/seo"  {if false!==strpos($group['regulars'],'admin_setting/seo')}checked{/if}  class="checkbox" type="checkbox">seo设置
			    </div>
	
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_setting/cache"  {if false!==strpos($group['regulars'],'admin_setting/cache')}checked{/if}  class="checkbox" type="checkbox">更新缓存
			    </div>
			
			   </td>
		 	</tr>
		 	
			<tr id="regular_manage">
			  <td class="first-cell" valign="top" width="18%">
			  	<input name="chkGroup" value="regular_manage"  class="checkbox" type="checkbox" onclick="selectCell(this);">网站管理（后台）
			  </td>
			  <td>
			    <div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_main/default,admin_main/header,admin_main/menu,admin_main/stat,admin_main/login,admin_main/logout"  {if false!==strpos($group['regulars'],'admin_main/default,admin_main/header,admin_main/menu,admin_main/stat,admin_main/login,admin_main/logout')}checked{/if}  class="checkbox" type="checkbox">网站后台
			    </div>
			
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_event/default,admin_event/remove,admin_event/add,admin_event/edit"  {if false!==strpos($group['regulars'],'admin_event/default,admin_event/remove,admin_event/add,admin_event/edit')}checked{/if}  class="checkbox" type="checkbox">活动管理
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_user/default,admin_user/search,admin_user/add,admin_user/remove,admin_user/edit"  {if false!==strpos($group['regulars'],'admin_user/default,admin_user/search,admin_user/add,admin_user/remove,admin_user/edit')}checked{/if}  class="checkbox" type="checkbox">用户管理
			    </div>
				<div style="width: 200px; float: left;">
			     	<input name="regular_code[]" value="admin_usergroup/default,admin_usergroup/add,admin_usergroup/remove,admin_usergroup/edit"  {if false!==strpos($group['regulars'],'admin_usergroup/default,admin_usergroup/add,admin_usergroup/remove,admin_usergroup/edit')}checked{/if}  class="checkbox" type="checkbox">用户组管理
			    </div>

			   </td>
		 	</tr>
		 <!--{/if}-->
	<!--{/if}-->
			<tr class="nobg">
    			<td><input type="submit" value="提交"  class="btn"></td>
  		 	</tr>
		 </tbody>
		</table>
	</form>
	</div>
</div>

</body>

</html>
